package com.chinasoft.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.chinasoft.entity.Book;
import com.chinasoft.entity.Page;
import com.chinasoft.mapper.Bookmapper;
import com.chinasoft.service.BookService;


public class BookServiceImpl implements BookService{
	@Autowired(required=true)
	private Bookmapper bm;
	@Override
	public List<Book> selectAllBook(Page page) {
		return bm.selectAllBook(page);
	}
	@Override
	public List<Book> findAllBooks() {
		return bm.findAllBooks();
	}
	@Override
	public Book selectBookById(Book book) {
		return bm.selectBookById(book);
	}
	@Override
	public void updateBook(Book book) {
		bm.updateBook(book);
		
	}
	@Override
	public Book selectByNameAndType(Book book) {
		
		return bm.selectByNameAndType(book);
	}
	@Override
	public void addBook(Book Book) {
		bm.addBook(Book);
	}

}
